package com.umedcn.dao;

import com.umedcn.mapper.TokenMapper;
import com.umedcn.model.Token;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by jiangadam on 2017/8/9.
 */
@Component
public class TokenDao {

    @Autowired
    private TokenMapper tokenMapper;

    public Token getToken(String token){
        return tokenMapper.getToken(token);
    }
}
